Saga<'TEvent, 'TSagaData, 'TState>Type

PackageFCQRS
C#-friendly abstract base for a saga. A concrete saga supplies InitialData, SagaName, Originator (the aggregate it starts from), HandleEvent and ApplySideEffects; the base provides the wiring (Init/Factory) and the small transition DSL. Designed to be subclassed from C#.

Specification

Kind
Type
Members
16
Examples
0
``.ctor``Signature
Saga()
ApplySideEffectsSignature
this.ApplySideEffects
FactorySignature
this.Factory
FactorySignature
this.Factory
HandleEventSignature
this.HandleEvent

Summary

NameSignatureSynopsis
``.ctor``Saga()No description available.
ApplySideEffectsthis.ApplySideEffectsNo description available.
Factorythis.FactoryThe factory the saga-starter spawns instances from.
Factorythis.FactoryThe factory the saga-starter spawns instances from, with an explicit policy.
HandleEventthis.HandleEventNo description available.
Initthis.InitRegister the saga; calling this IS the registration.
Initthis.InitRegister the saga with an explicit (already-resolved) snapshot policy.
SnapshotPolicythis.SnapshotPolicyPer-saga snapshot cadence.
SagaNamethis.SagaNameNo description available.
InitialDatathis.InitialDataNo description available.
Originatorthis.OriginatorNo description available.
NextStateSaga.NextState(next)No description available.
StateChangedSaga.StateChanged(next)Transition and event DSL over TState.
StaySaga.Stay()No description available.
StopSagaSaga.StopSaga()No description available.
UnhandledSaga.Unhandled()No description available.

``.ctor``

Saga()
Member

Returns

Saga<'TEvent, 'TSagaData, 'TState>

ApplySideEffects

this.ApplySideEffects
Member

Parameters

NameTypeDescription
arg0SagaState<'TSagaData, 'TState>
arg1bool

Returns

SagaSideEffectResult<'TState>

Factory

this.Factory
Member
The factory the saga-starter spawns instances from.

Parameters

NameTypeDescription
actorApiIActor

Returns

AggregateFactory

Factory

this.Factory
Member
The factory the saga-starter spawns instances from, with an explicit policy.

Parameters

NameTypeDescription
actorApiIActor
snapshotPolicySnapshotPolicy

Returns

AggregateFactory

HandleEvent

this.HandleEvent
Member

Parameters

NameTypeDescription
arg0obj
arg1SagaState<'TSagaData, 'TState option>

Returns

EventAction<'TState>

Init

this.Init
Member
Register the saga; calling this IS the registration.

Parameters

NameTypeDescription
actorApiIActor

Returns

EntityFac<obj>

Init

this.Init
Member
Register the saga with an explicit (already-resolved) snapshot policy.

Parameters

NameTypeDescription
actorApiIActor
snapshotPolicySnapshotPolicy

Returns

EntityFac<obj>

SnapshotPolicy

this.SnapshotPolicy
Member
Per-saga snapshot cadence. Override to use Every(n) or NoSnapshots; the default falls back to config:akka:persistence:snapshot-version-count (or 30).

Returns

SnapshotPolicy

SagaName

this.SagaName
Member

Returns

string

InitialData

this.InitialData
Member

Returns

'TSagaData

Originator

this.Originator
Member

Returns

AggregateFactory

NextState

Saga.NextState(next)
Member

Parameters

NameTypeDescription
next'TState

Returns

SagaTransition<'TState>

StateChanged

Saga.StateChanged(next)
Member
Transition and event DSL over TState.

Parameters

NameTypeDescription
next'TState

Returns

EventAction<'TState>

Stay

Saga.Stay()
Member

Returns

SagaTransition<'TState>

StopSaga

Saga.StopSaga()
Member

Returns

SagaTransition<'TState>

Unhandled

Saga.Unhandled()
Member

Returns

EventAction<'TState>